package com.googlecode.gendevcode;

import com.googlecode.gendevcode.common.Cache;
import com.googlecode.gendevcode.model.ServiceConfigXml;
import com.googlecode.gendevcode.service.MainService;
import com.googlecode.gendevcode.service.basic.ServiceSupport;

/**
 * 生成代码工具主类
 * @author devilishking
 *
 */
public class Main extends ServiceSupport<Main> {
	
	public static void main(String[] args){
		try{
			Cache.getInstance().init();
			MainService mainService = Cache.getInstance().getBean(ServiceConfigXml.ID_MAIN, MainService.class);
			mainService.doExecute();
		}
		catch(Exception e){
			System.out.println(e.getMessage());
		}
	}
}